package news;

/**
 *
 * @author Thorsten Ludwig
 */
public class NewsContainer {
    
    private News news;
    private boolean edit;
    
    public NewsContainer(News news) {
        this.news = news;
    }

    public boolean isEdit() {
        return edit;
    }

    public void setEdit(boolean edit) {
        this.edit = edit;
    }

    public News getNews() {
        return news;
    }
    
    public String toggle() {
        this.edit = !this.edit;
        return "";
    }
}
